Optimal. Leaf size=226 \[ \frac {2 (a-b) \sqrt {a+b} B \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a^2 d}-\frac {2 \sqrt {a+b} B \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 226, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {21, 2880, 2895,
3073} \begin {gather*} \frac {2 B (a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a^2 d}-\frac {2 B \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 2880
Rule 2895
Rule 3073
Rubi steps
\begin {align*} \int \frac {a B+b B \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))^{3/2}} \, dx &=B \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=-\left (B \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx\right )+B \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {2 (a-b) \sqrt {a+b} B \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a^2 d}-\frac {2 \sqrt {a+b} B \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.21, size = 212, normalized size = 0.94 \begin {gather*} \frac {2 B \left (-\left ((a+b) \sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )\right )+a \sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )+(a+b \cos (c+d x)) \tan \left (\frac {1}{2} (c+d x)\right )\right )}{a d \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(612\) vs.
\(2(210)=420\).
time = 0.29, size = 613, normalized size = 2.71
method | result | size |
default | \(-\frac {2 B \left (\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right ) a -\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticE \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right ) a -\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticE \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right ) b +\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) a \sin \left (d x +c \right )-\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticE \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) a \sin \left (d x +c \right )-\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticE \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) b \sin \left (d x +c \right )+\left (\cos ^{2}\left (d x +c \right )\right ) b +a \cos \left (d x +c \right )-b \cos \left (d x +c \right )-a \right )}{d \sqrt {a +b \cos \left (d x +c \right )}\, \sin \left (d x +c \right ) \sqrt {\cos \left (d x +c \right )}\, a}\) | \(613\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} B \int \frac {1}{\sqrt {a + b \cos {\left (c + d x \right )}} \cos ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {B\,a+B\,b\,\cos \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{3/2}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________